html,body,.page{
    width: 100%;
    height: 100%;
    overflow: hidden;
}
button,input{
    appearance: none;
    -webkit-appearance: none;
    border:0 none;
    background: none;
}
/* 菜单 */
.side{
    width: 19%;
    color: #fff;
    background-color: #3f3f3f;
}
/* 添加项目 */
.side-add,.side-add-list{
    padding-left: 15px;
    padding-right: 15px;
}
.side-add{
    margin-top: 15px;
}
.side-add-list {
    height: 0;
    overflow: hidden;
    margin-bottom: 15px;
    transition: all .3s linear;
    -webkit-transition: all .3s linear;

}
.side-add-list.active{
    height: 90px;
}
.side-add-list li{
    margin-top: 10px;
}
.side-add-text{
    width: 100%;
    background-color: #646464;

}
.side-add-list button,.side-add-text{
    padding: 8px;
    font-size: 14px;
    color: inherit;
}
.side-add-list button{
 width: 40%;   
}
/* 添加按钮 */
.side-add-list .side-add-push{
    border-radius: 15px;
    border:1px solid seagreen;
    color: seagreen;
}
/* 列表 */
.side-list-a{
    position: relative;
    display: block;
    padding: 10px 15px;
}
.side-list-a::after{
    content: '+';
    position: absolute;
    right: 15px;
    top:50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
}
.side-list li.active,
.side-list li a:hover{
    background-color: #646464;
}
.side-list input{
    padding: 8px;
    background: #ccc;
    margin: -8px;
}
.side-list-cell.active .side-list-nav{
    height: 60px;
}


/* 拖入 */
.side-list .list-cell{
    border: 0 none !important;
    background: #ec7259!important;
    
}

.side-list .list-cell:nth-of-type(1){
    display: none;
}

.side-list-cell.in{
    background: #ec7259 !important;
} 
.side-list .list-cell>*{
    display: none;

}

/* .list-cell+.side-list-cell{
    background: #ec7259 !important;
} */

.side-list li button{
    float: right;
    color: #fff;
    margin-top: 3px;
}
.side-list-nav{
    height: 0;
    overflow: hidden;
    text-align: right;
    transition: all .3s linear;
    -webkit-transition: all .3s linear;
}
.side-list-nav a{
    display: inline-block;
    padding: 5px;
}
.side-list-name a{
    display: none;
}
.side-list-name .side-list-ed{
    display: inline-block;
}
.side-list-name.active a{
    display: inline-block;
}
.side-list-name.active .side-list-ed{
    display: none;
}

.ml{
    width: 21%;
    border-right: 1px solid #ccc;
}
.ml a{
    display: block;
}
.ml-add,.list-a{
    padding:10px 15px; 
}
.list-cell{
    position: relative;
    transition: all .3s linear;
    -webkit-transition: all .3s linear;
}
.list-about{
    opacity: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 12px;
    padding-left: 15px;
    transition: all .3s linear;
    -webkit-transition: all .3s linear;
    pointer-events: none;
}
.list-a{
    height: 100px;
    line-height: 80px;
    font-size:18px; 
}

.list-cell.active ,.list-cell:hover {
    background: #f1f1f1;
    border-left: 3px solid #ec7259;
}
.list-cell.active .list-about{
    opacity: 1;
}
/* ml nav */
.list-nav{
    display: none;
    position: absolute;
    top: 58%;
    right: 10px;
    width: 100px;
    background: #fff;
    border:1px solid #ccc;
    z-index: 100;
    border-radius: 5px;
}
.list-cell.active .list-nav-a{
    display: block;
}
.list-nav-a{
    display: none;
    position: absolute;
    right: 15px;
    top:50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    width: 40px;
    height: 40px;
    font-size: 18px;
    background-color:rgba(255,255,255,0.4);

}
.list-nav.active{
    display: block;
}
.list-nav::before,.list-nav::after{
    position: absolute;
    top: -10px;
    left: 70%;
    content: '';
    display: inline-block;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #fff;
}
.list-nav::after{
    border-bottom-color: #ccc;
}
.list-nav::before{
    top:-9px;
    z-index: 1;
    
}
 
.list-nav a{
    text-align: center;
    padding: 5px;
    border-bottom: 1px solid #ccc;
}
.list-nav a:hover{
    background: #f1f1f1;
}


/* 编辑器 */
.main{
    position: relative;
    width: 60%;
}
.main .text,.main .top{
    background: #fff;
}
/* 头部 */
.main .top{
    position: relative;
   height: 50px;
}
/* 保存 */
.main .sub{
    position: absolute;
    right: 15px;
    top:10px;
    background:#8cc100;
    border-radius: 5px;
    padding: 8px 15px;
    color: #fff;
}
.main .sub:active{
    box-shadow:inset 0 0 2px 2px rgba(0,0,0,.2); 
    
}
.main .top,.main .title,.main .text{
    width: 100%;
}
.main .title{
    height: 100%;
    padding-left: 10px;
    /* border-left: 1px solid #ccc; */
    font-size: 20px;
}
.main .toolbar{
    background: #dedede;
}
.main .text{
    position: absolute;
    top: 75px;
    bottom: 0;
    border-top:1px solid #ccc;
}
/*历史记录*/
.record{
    position: fixed;
    width: 150px;
    height: 100%;
    left: 0;
    top: 0;
    border-right: 1px solid #333;
    background: #fff;
    transition: all .3s linear;
    -webkit-transition: all .3s linear;
    pointer-events: none;
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
}
.record.active{
    pointer-events: auto;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}
.record .close{
    position: absolute;
    right: 5px;
    top:0px;
    display: block;
    font-size: 20px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
.record .close:active{
    color:#ccc;
}
.record .title{
    padding: 10px;
}
.record li a{
    display: block;
    padding: 10px;
}
.record li a:hover{
    background: #f1f1f1;
}    
.record li{
    border-top: 1px solid #ccc;
}
.record ul li:only-child{
    border-bottom: 1px solid #ccc;    
}

/* 全屏 */
.full{
    background: #f1f1f1;
    justify-content: center; 
}
.full .side,.full .ml{
    display: none;
}
.full .main{
    width: 100%;
}
.full .toolbar{
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
}
.full .top{
    position: absolute;
    top:30px;
}
.full .top,.full .text{
    margin: 0 auto;
    left: 0;
    right: 0;
    max-width: 640px;
}